package eventplanner.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD})
@Constraint(validatedBy = ValidTokenValidator.class)
public @interface ValidToken {
	String message() default "{com.mycompany.constraints.checkcase}";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
